package com.imooc.dto.index;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName: CarouselDto
 * @Description:
 * @author: limingxing
 * @Date: 2019-12-24 16:31
 */
@Data
@ApiModel(value = "轮播图DTO")
public class CarouselDto {

    @ApiModelProperty(value = "轮播图ID")
    private String id;

    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    @ApiModelProperty(value = "背景颜色")
    private String backgroundColor;

    @ApiModelProperty(value = "商品id")
    private String itemId;

    @ApiModelProperty(value = "商品分类id")
    private String catId;

    @ApiModelProperty(value = "轮播图类型，用于判断，可以根据商品id或者分类进行页面跳转，1：商品 2：分类")
    private Integer type;

    @ApiModelProperty(value = "轮播图展示顺序，从小到大")
    private Integer sort;

    @ApiModelProperty(value = "是否展示，1：展示    0：不展示")
    private Integer isShow;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
